package com.zyx.strategy.stg02;

import org.springframework.stereotype.Service;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/9 22:13
 */
@Service("Handler2")
public class Algorithm22 extends AbstractHandler {

    @Override
    public void execute() {
        System.out.println("执行算法2");
    }

    @Override
    public boolean accept(String request) {
        return "Handler2".equals(request);
    }
}
